#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define USER "USER"
#define MY_VAL "myval"
int main() {
  // char *who = getenv(USER);
  // if (strcmp(who, "root") == 0) {
  //   printf("user: %s\n", who);
  // } else {
  //   printf("权限不够\n");
  // }

  char *myenv = getenv(MY_VAL);
  if (myenv == NULL) {
    printf("%s not found\n", MY_VAL);
    return 1;
  }
  printf("%s = %s\n", MY_VAL, myenv);
  return 0;
}
